interface Options {
  el: string;
  root: Component;
  props?: Data;
}

export function useApp(options: Options) {
  const { el, root, props } = options;
  const app = createApp(root, props);
  setupStore(app);
  setupRouter(app);
  setupLayout(app);
  router.isReady().then(() => app.mount(el));
}
